package com.xtaller.lazy.service.system; 

import com.xtaller.lazy.base.TServiceImpl; 
import com.xtaller.lazy.mapper.system.RoleAuthMapper; 
import com.xtaller.lazy.model.system.RoleAuth; 
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/** 
* 代码生成 
* @author: Taller  
* @date: 2019/04/10
* @Description: 角色权限服务 
*/ 
@Service 
public class RoleAuthService extends TServiceImpl<RoleAuthMapper, RoleAuth>{

    @Transactional
    public Boolean batch(Long roleId, List<RoleAuth> ras){
        baseMapper.init(roleId);
        this.saveBatch(ras, ras.size());
        return true;
    }
}
